home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Disk Compression 1.xpl < prev    next >
Text File  |  2001-05-04  |  3KB  |  87 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="1"
  3. "COUNT"="4"
  4. "UIPATH"="System\File System\Windows 9x/ME Options\Compression"
  5. "NAME"="Compression Settings"
  6. "VERSION"="1.05"
  7. "OSVERSION"="10101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="UltraPack Settings"
  10. "TEXT 2"="MinimumFreeSpace"
  11. "TEXT 3"="Change UltraPack"
  12. "TEXT 4"="Default Format"
  13. "DESCRIPTION 1"="Item #1: Specify which files to compress using the Ultra Pack option. These settings apply when running Compression Agent as a stand alone application, not from the Task Manager. Enter "None" [no quotes] for best performance; enter "All" [no quotes] for highest compression [not recommended for 486 processors]; enter "30" [no quotes] to use Ultra Pack on only files that haven't been used within the last 30 days."
  14. "DESCRIPTION 2"="Item #2: Specify the minimum amount of free space available in MBs below which no file's compression level will be changed. Default is "20" [no quotes]."
  15. "DESCRIPTION 3"="Item #3: To recompress Ultra Packed files to Default Format, enter "Yes" [no quotes]; to leave all Ultra Packed files in Ultra Pack format, enter "No" [no quotes]. Suggested value is "Yes".
  16. "DESCRIPTION 4"="Item #4: For files not Ultra Packed, enter "HiPack" [no quotes] to use HiPack format as the default; HiPack is recommended for a balance of good performance and compression. For maximum performance that stores non-Ultra Packed files as uncompressed, enter "None" [no quotes]."
  17. "AUTHOR"="Ojatex@aol.com"
  18. "CONTACTURL"="http://members.aol.com/ojatex/"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"=" "
  21. "COMMENT 2"="Expand a disk, squash a file."
  22.  
  23. sP1="HKLM\Software\Microsoft\Plus!\Compression Agent\Settings\UltraPackPolicy\@"
  24. sP2="HKLM\Software\Microsoft\Plus!\Compression Agent\Settings\MinFreeSpace\@"
  25. sP3="HKLM\Software\Microsoft\Plus!\Compression Agent\Settings\UltraToDefault\@"
  26. sP4="HKLM\Software\Microsoft\Plus!\Compression Agent\Settings\DefaultPolicy\@"
  27. 'Called when the Plugin is started
  28. SUB Plugin_Initialize
  29.     i=RegReadValue(sP1)
  30.     if IsEmpty(i) then
  31.        Call SetUIElement(1,i)   
  32.     else
  33.        Call SetUIElement(1,i)
  34.     end if
  35.  
  36.    i=RegReadValue(sP2)
  37.     if IsEmpty(i) then
  38.        Call SetUIElement(2,i)   
  39.     else
  40.        Call SetUIElement(2,i)
  41.     end if
  42.  
  43.    i=RegReadValue(sP3)
  44.     if IsEmpty(i) then
  45.        Call SetUIElement(3,i)   
  46.     else
  47.        Call SetUIElement(3,i)
  48.     end if
  49.  
  50.    i=RegReadValue(sP4)
  51.     if IsEmpty(i) then
  52.        Call SetUIElement(4,i)   
  53.     else
  54.        Call SetUIElement(4,i)
  55.     end if
  56. END SUB
  57.  
  58. 'Called when the Plugin should validate the Data the user has entered
  59. SUB Plugin_CheckData(ElementIndex)
  60. END SUB
  61.  
  62. 'Called when the Plugin should apply the changes
  63. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  64.  i=GetUIElement(1)
  65.  
  66.   Call RegWriteValue(sP1,i,1)
  67.  
  68. i=GetUIElement(2)
  69.  
  70.     Call RegWriteValue(sP2,i,1)  
  71.  
  72. i=GetUIElement(3)
  73.  
  74.     Call RegWriteValue(sP3,i,1)  
  75.  
  76. i=GetUIElement(4)
  77.  
  78.     Call RegWriteValue(sP4,i,1) 
  79.  
  80.  
  81. END SUB
  82.  
  83. SUB Plugin_Terminate
  84.  
  85. END SUB
  86.  
  87.